package ro.mvc.framework.servlet;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * Created by IntelliJ IDEA.
 * User: marina.ciocea
 * Date: 27.07.2010
 * Time: 14:18:08
 * To change this template use File | Settings | File Templates.
 */
public class MvcServlet extends javax.servlet.http.HttpServlet {
    protected void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException {
        process(request, response);
    }

    protected void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException {
         doPost(request, response);
    }

    public void process(HttpServletRequest request, HttpServletResponse response)
    {
        RequestProcessor requestProcessor = new RequestProcessor();
        requestProcessor.process(request, response);
        
    }
}
